package com.hskn.hss.module.tloilcostcfg.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.annotation.DataScope;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.ExcelReaderDataException;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.tloilcostcfg.entity.TlOilcostCfg;
import com.hskn.hss.module.tloilcostcfg.to.TlOilcostCfgListTO;
import com.hskn.hss.module.tloilcostcfg.vo.TlOilcostCfgExecelVO;
import com.hskn.hss.to.ForIdsTO;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-05
 */
public interface ITlOilcostCfgService extends IService<TlOilcostCfg> {
    AjaxResult insert(JSONObject params);

    AjaxResult update(JSONObject params);

    AjaxResult deleteByid(ForIdsTO forIdsTO);

    void excelReader(List<TlOilcostCfg> oilcostCfgList) throws ExcelReaderDataException;

    TlOilcostCfg getitemByid(String id) throws HssException;

    @DataScope(deptAlias = "deptidforcar", userAlias = "creatBy")
    JSONObject listOilCost(BaseEntity entity ,JSONObject params) throws HssException;

    @DataScope(deptAlias = "deptidforcar", userAlias = "creatBy")
    List<TlOilcostCfg> getTlOilcostCfgList(TlOilcostCfgListTO oilcostCfgListTO, SimpleDateFormat format) throws ParseException;

    JSONObject getDcylqxJysjList(JSONObject params) throws HssException;

}
